home *** CD-ROM | disk | FTP | other *** search
- ' This simple macro opens an ASCII text file found in the
- ' DesignCAD directory which contains 3 lines. It then draws a 3D box
- ' Starting at XYZ 0, relative to the 3 values found in the file.
- '
- ' Open the Data file, (*\ denotes the DesignCAD directory).
- open "i", 1, "*\KDW.txt"
- ' Retrieve the values from the file
- input #1, KDW1$
- input #1, KDW2$
- input #1, KDW3$
- ' Remember to close the file
- Close #1
- ' Draw the Box
- >Box
- {
- <Color 0,0,0
- <Layer 1
- <PointXYZ 0.0000,0.0000,0.0000
- <PointXYZ [KDW1$, KDW2$, KDW3$]
- }
- End
- ' Contents of KDW.txt are
- 23
- 34
- 45
-
-
-